const ejs = require('ejs');

ejs.renderFile('./view/2.ejs',{type:'home'},function(err,data){
    if(err){
        console.log('编译失败');
        console.log(err);
    }else{
        console.log(data);
    }
});